package com.zjhuang.mybatis_demo.dao;

import com.zjhuang.mybatis_demo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author huang
 */
@Repository
public interface UserDao {
    List<User> selectAll();

    int insertUser(User user);

    User selectById(@Param("id") int id);

    User selectByName(@Param("name") String name);

    User checkLogin(@Param("name") String name, @Param("password") String password);
}
